import request from "../utils/request";

// 登录
export const login=({mobile,code})=>{
    return request({
        method:'POST',
        url:'/v1_0/authorizations',
        data:{mobile,code}
    })
}

// 1 获取用户信息
export const getUserInfo=()=>{
    return request({
        url:"/v1_0/user/profile",
        method:"get"
    })
}